﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MVCDemo.Controllers
{
    public class HomeController : Controller
    {
        public string Index(string id, string name)
        {
            return "Id- " + id + "name- " + name;
        }

        public string GetDetails()
        {
            return "Get Details executed";
        }

        public ActionResult GetCountries()
        {
            ViewBag.Contries = new List<string>()
            {
                "India",
                "UK",
                "US",
                "Canada"
            };

            return View();
        }
    }
}
